package com.yhxt.dao;
import com.yhxt.eneity.Controct;
import org.hibernate.annotations.SQLUpdate;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.data.repository.query.Param;

import java.io.Serializable;

/**
 * @Author zjh
 * @Description //TODO $
 * @Date $ $
 * @Param $
 * @return $
 */
@NoRepositoryBean
public interface ContractRepository extends CrudRepository {


    @SQLUpdate(sql = "update contract set particulars_num = #{controct.getParticularsNum} where id = #{controct.id} ")
    void update(@Param("controct") Controct controct);
}
